how to setup a string in vanilla javascript